package com.easygoods.request;

import com.bestvike.stone.spring.exception.AssertUtils;
import com.bestvike.stone.spring.rest.IRequest;
import com.easygoods.enums.AddressType;
import lombok.Data;

/**
 * Created by 许崇雷 on 2019-01-15.
 */
@Data
public class AddressSetDefaultRequest implements IRequest {
    private String id;
    private AddressType addressType;

    @Override
    public void assertValid() {
        AssertUtils.hasText(this.id, "id");
        AssertUtils.notNull(this.addressType, "addressType");
    }
}
